package com.demo2;

/**
 * Colleague 具体的同事类  同事B
 * @author zhoujun
 * @date 2025/3/26 23:25
 */
public class ConcreteColleagueB  extends Colleague {

    /**
     * 传入中介者
     * @param mediator
     */
    public ConcreteColleagueB(Mediator mediator) {
        super(mediator);
    }

    @Override
    void receive(String message) {
        System.out.println("同事B收到消息=" + message);
    }
}
